home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 6 / CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso / cucd / prog / gnu-c / src / gcc-2.7.0-amiga / cp / decl.h < prev    next >
C/C++ Source or Header  |  1995-06-15  |  2KB  |  57 lines

  1. /* Variables and structures for declaration processing.
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 59 Temple Place - Suite 330,
  19. Boston, MA 02111-1307, USA.  */
  20.  
  21. /* In grokdeclarator, distinguish syntactic contexts of declarators.  */
  22. enum decl_context
  23. { NORMAL,            /* Ordinary declaration */
  24.   FUNCDEF,            /* Function definition */
  25.   PARM,                /* Declaration of parm before function body */
  26.   CATCHPARM,            /* Declaration of catch parm */
  27.   FIELD,            /* Declaration inside struct or union */
  28.   BITFIELD,            /* Likewise but with specified width */
  29.   TYPENAME,            /* Typename (inside cast or sizeof)  */
  30.   MEMFUNCDEF            /* Member function definition */
  31. };
  32.  
  33. /* C++: Keep these around to reduce calls to `get_identifier'.
  34.    Identifiers for `this' in member functions and the auto-delete
  35.    parameter for destructors.  */
  36. extern tree this_identifier, in_charge_identifier;
  37.  
  38. /* Parsing a function declarator leaves a list of parameter names
  39.    or a chain or parameter decls here.  */
  40. extern tree last_function_parms;
  41.  
  42. /* A list of static class variables.  This is needed, because a
  43.    static class variable can be declared inside the class without
  44.    an initializer, and then initialized, staticly, outside the class.  */
  45. extern tree pending_statics;
  46.  
  47. /* A list of objects which have constructors or destructors
  48.    which reside in the global scope.  The decl is stored in
  49.    the TREE_VALUE slot and the initializer is stored
  50.    in the TREE_PURPOSE slot.  */
  51. extern tree static_aggregates;
  52.  
  53. #ifdef DEBUG_CP_BINDING_LEVELS
  54. /* Purely for debugging purposes.  */
  55. extern int debug_bindings_indentation;
  56. #endif
  57.